import requests
from datetime import datetime

end_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
print(end_time)


headers = {"user-agent":'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36'}
for i in range(100):
    res = requests.post('http://jsggzy.jszwfw.gov.cn/inteligentsearch/rest/esinteligentsearch/getFullTextDataNew',headers=headers,json={
        "token": "",
        "pn": 0,
        "rn": 20,
        "sdt": "",
        "edt": "",
        "wd": "",
        "inc_wd": "",
        "exc_wd": "",
        "fields": "title",
        "cnum": "001",
        "sort": "{\"infodatepx\":\"0\"}",
        "ssort": "title",
        "cl": 200,
        "terminal": "",
        "condition": [],
        "time": [
            {
                "fieldName": "infodatepx",
                "startTime": "2025-11-21 00:00:00",
                "endTime": end_time
            }
        ],
        "highlights": "title",
        "statistics": None,
        "unionCondition": [],
        "accuracy": "",
        "noParticiple": "1",
        "searchRange": None,
        "isBusiness": "1"
    })
    print(res.text)